/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.zeke.cursos.jsf2spring3jpa2.negocio.services;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author eduardo
 */
@Service
@Scope(proxyMode = ScopedProxyMode.INTERFACES)
public class ProductoServiceImpl implements ProductoService {

    @PersistenceContext
    private EntityManager em;
    
    private static Logger log = LoggerFactory.getLogger(ProductoServiceImpl.class);

    @Transactional(readOnly = true)
    public void test() {
        log.debug("PROBANDO SERVICIO!");
    }
}
